import LayoutMain from '@/layout';
import setting from '@/setting';
let routePre = setting.routePre;

let pre = 'question_';
const question = {
  path: routePre + '/question',
  name: 'question',
  header: 'question',
  redirect: {
    name: `${pre}list`,
  },
  meta: {
    auth: true
  },
  component: LayoutMain,
  children: [
    {
      path: 'list',
      name: `${pre}list`,
      meta: {
        auth: ['admin-question-list'],
        title: '题库管理',
      },
      component: () => import('@/pages/question/index'),
    },
    {
      path: 'edit',
      name: `${pre}info`,
      meta: {
        auth: ['user-question-info'],
        title: '题库详情',
      },
      component: () => import('@/pages/question/edit'),
    },
  ],
};
export {question};